﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace pttk_htt_hr.DAO
{
    class Dialog
    {
   #region Common
        public static bool Show_MessageBox_YesNo(string message, string caption)
        {
            bool isYes = false;

            MessageBoxButtons buttons = MessageBoxButtons.YesNo;
            DialogResult result;

            // Displays the MessageBox.

            result = MessageBox.Show(message, caption, buttons);

            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                isYes = true;
            }

            return isYes;
        }
        public static void Show_InfoMessageBox(string message, string caption)
        {
            MessageBoxButtons buttons = MessageBoxButtons.OK;
            MessageBox.Show(message, caption, buttons);
        }

        //#region
        //#endregion

        public static void Show_Info_MessageBox_MadatoryNotPassed()
        {
            string message = "Bạn cần nhập những INPUT yêu cầu";
            string caption = "Mandatory Info Message";

            Show_InfoMessageBox(message, caption);
        }

        
        #endregion


   #region Detail

        #region Infor message

        #region Delete
        public void Show_Info_MessageBox_DeleteOK()
        {
            string message = "Xóa thành công!";
            string caption = "Delete Info Message";

            Show_InfoMessageBox(message, caption);
        }

        public void Show_Info_MessageBox_DeleteNG()
        {
            string message = "Xóa thất bại";
            string caption = "Delete Info Message";

            Show_InfoMessageBox(message, caption);
        }
        #endregion // End Delete

        #region Check box choose to delete
        public static void Show_Info_MessageBox_CheckBoxCheck()
        {
            string message = "Vui lòng chọn ít nhất 1 để xóa";
            string caption = "Delete Message";

            Show_InfoMessageBox(message, caption);
        }

        #endregion // End Infor message

        #region YeNo message
        
        #endregion // End Check box choose

        #region Cancel
        public static bool Show_MessageBox_YesNo_Cancel()
        {
            string message = "Do you want cancel?";
            string caption = "Cancel Message";
           
            return Show_MessageBox_YesNo(message, caption);

        }
        #endregion // End Cancel

        #region Delete
        public static bool Show_MessageBox_YesNo_Delete()
        {
            string message = "Do you want delete?";
            string caption = "Delete Message";

            return Show_MessageBox_YesNo(message, caption);

        } 
        #endregion //End Delete

        #region Close
        public static bool Show_MessageBox_YesNo_Close()
        {
            string message = "Do you want close window?";
            string caption = "Close Message";

            return Show_MessageBox_YesNo(message, caption);

        }
        #endregion //End Close

        #region Save
        public static bool Show_MessageBox_YesNo_Save()
        {
            string message = "Do you want save?";
            string caption = "Save Message";

            return Show_MessageBox_YesNo(message, caption);

        }
        #endregion //End Save
        #endregion //YesNo message
   #endregion
    }
}
